import { CharacterType } from "../../Enums/GameEnum";
import BaseState from "./BaseState";

export default class BaseIdleState extends BaseState {


    public EnterState(): void {
        super.EnterState();
    }

    public ExitState(): void {
        super.ExitState();
    }

    public UpdataState(dt: number): void {
        super.UpdataState(dt);
        if (!this.characterEle.isCollidePlatform) {
            return;
        }
        if (this.characterEle.characterType == CharacterType.player) {
            if (this.characterEle.pathArr != null && this.characterEle.pathArr.length > 0) {
                this.characterEle.changeState(this.characterEle.runState);
            }
        } else {

        }

    }
}
